<%@page import="com.buss.core.dic.MenuType"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../includes/tag.jsp" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<form:form name="customer_edit" action="" commandName="customer"  style="margin-top:20px;">
	<form:hidden path="id"/>
	<table width="100%" align="center" cellpadding="0" cellspacing="8">
	  <tr>
	  	<td align="right">单位名称：</td>
	  	<td align="left">
	  		<form:input path="name" size="30" cssClass="text"/>
	  	</td>
	  	<td align="right">拼音码：</td>
	  	<td align="left">
	  		<form:input path="mnemonic" size="30" cssClass="text"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">所属类别：</td>
	  	<td align="left">
	  		<form:hidden path="customerClass.id"/>
	  		<form:input path="customerClass.name" size="30" cssClass="text" readonly="true"/> 
	  	</td>
	  	<td align="right">来源方式：</td>
	  	<td align="left">
	  		<form:select path="source.id" items="${customerSources}" itemLabel="name" itemValue="id" cssStyle="width:190px;"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">是否共有：</td>
	  	<td align="left">
	  		<form:checkbox path="isOpenToSales" cssStyle="display:none;"/>
	  		<form:checkbox path="isOpenToSales" disabled="true" label="所有业务员可用"/>
	  	</td>
	  	<td align="right">单位类型：</td>
	  	<td align="left">
	  		<form:checkbox path="isSupplier" label="供应商"/>
	  		<form:checkbox path="isCustomer" label="客户"/>	  		
	  	</td>
	  </tr>
	  
	  <tr>
	  	<td align="right">联系电话：</td>
	  	<td>
	  		<form:input path="telPhone" cssClass="text" size="30"/>
	  	</td>
	  	<td align="right">邮政编码：</td>
	  	<td>
	  		<form:input path="post" cssClass="text" size="30"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">传真号码：</td>
	  	<td>
	  		<form:input path="fax" cssClass="text" size="30"/>
	  	</td>
	  	<td align="right">单位网址：</td>
	  	<td>
	  		<form:input path="website" cssClass="text" size="30"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">税务登记号：</td>
	  	<td>
	  		<form:input path="tax" cssClass="text" size="30"/>
	  	</td>
	  	<td align="right">当前状态：</td>
	  	<td>
	  		<form:radiobuttons path="status" itemLabel="value"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">单位地址：</td>
	  	<td colspan="3">
	  		<form:input path="address" cssClass="text" size="50"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">单位说明：</td>
	  	<td colspan="3">
	  		<form:textarea path="intro" cssClass="textarea" rows="4" cols="80"/>
	  	</td>
	  </tr>
	</table>
</form:form>
